import string
from mod_python import apache
from mod_python import Session

urls = ('/easyrouter/index.html', 'myindex', 
	'/about', 'about'
	)

def group(seq, size):
    if not hasattr(seq, 'next'):
        seq = iter(seq)
    while True:
        yield [seq.next() for i in xrange(size)]
    
def handler(req):
    for url, ofno in group(urls, 2):
	if req.uri == url:
		mod = __import__(ofno)
		cls = getattr(mod, ofno)
		inst = cls()
		inst.GET(req)	
    return apache.OK

